package top.korori.sv.entity.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

@Getter
@Setter
@ApiModel("上传作品信息")
public class SvWorkVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("作品id")
    private Long workId;

    @ApiModelProperty("描述")
    private String desc;

    @ApiModelProperty("封面地址")
    private String cover;

    @ApiModelProperty("视频地址")
    private String url;

    @ApiModelProperty("状态(0 正常 1 审核 2 未通过)")
    private Integer status;

    @ApiModelProperty("可见权限（0 公开 1 仅自己）")
    private Integer per;

    @ApiModelProperty("可见权限（0 公开 1 仅自己）")
    private Integer isDown;

    @ApiModelProperty("发布地址")
    private String addr;

    @ApiModelProperty("喜欢")
    private Long like;

    @ApiModelProperty("收藏")
    private Long star;

    @ApiModelProperty("发布用户id")
    private Long userId;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @ApiModelProperty("用户名")
    private String userName;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @ApiModelProperty("头像")
    private String avatar;
}